package src.stu23002130.chapter07;

import java.util.HashMap;
import java.util.Map;

public class Demoo14 { public static void main(String[] args) {
    Map map_23002130 = new HashMap(); // 创建HashMap对象
    map_23002130.put("1", "张三");          // 存储键和值
    map_23002130.put("2", "李四");
    map_23002130.put("3", "王五");
    System.out.println("1：" + map_23002130.get("1"));  // 根据键获取值
    System.out.println("2：" + map_23002130.get("2"));
    System.out.println("3：" + map_23002130.get("3"));
}

}
